<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>插值表达式</title>
    <script src="Myvue.js"></script>
</head>
<body>
<div id="app" >
    <!--    <p>{{ msg }}</p>
        <p>{{ age }}</p>
        <p>普通文本</p>
        <p>{{ obj.firstName }}</p>-->
    <p>1{{ obj.second.username }}</p>

    <p v-text="name"></p>
    <input type="text" v-model="name">
</div>
</body>
<script>

    // Myvue构造函数实例化
    var vm = new Myvue({
        el: "#app",
        data: {
            name: '柴达木',
            age: 17,
            msg: "yxx",
            obj: {
                firstName: "zs",
                second: {
                    username: "lisi"
                }
            }
        }
    })

</script>
</html>
